﻿<%@ Page Language="C#" AutoEventWireup="true"
    CodeFile="submitSrc.aspx.cs" Inherits="Wsbs_submit" Title="各业务状态查询" %>

<%@ Register Src="../UserControls/Calendar.ascx" TagName="Calendar" TagPrefix="uc3" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<script type="text/javascript" src="../ScriptFile/jquery.js"></script>
<script type="text/javascript" src="../ScriptFile/jquery.easyui.min.js"></script>

<head runat="server">

    <link href="../css/login_index.css" rel="stylesheet" />
    <title>外网办事大厅</title>
</head>
<body style="background-color: #f7f7f7;">
    <form id="form1" runat="server">
        <script type="text/javascript">


            //关闭窗口
            function CloseDivDlg() {
                $('#dlgConfig').window('close');
            }

            //打开内嵌网页的通用方法1（window）
            function openDivDlg(strTitle, strUrl, divWidth, divHeight) {
                //增加参数queryid
                $('#dlgConfig').window({
                    title: strTitle, width: divWidth, height: divHeight
                });

                $('#iframeConfig').attr("src", strUrl);
                // $('#dlgConfig').window({ maximized: true });
                $('#dlgConfig').window('open');
            }

            var flag = '<%= Request["flag"]%>';

            function OpenReasonDiag(striid) {
                //转向网页的地址;
                var url = "SubmitRemark.aspx?iid=" + striid + "&flag=" + flag;

                var name = "详细内容";                 //网页名称，可为空;
                var iWidth = 400;                          //弹出窗口的宽度;
                var iHeight = 290;                         //弹出窗口的高度;

                openDivDlg(name, url, iWidth, iHeight);
            }
        </script>
     
        <div >
            <div style="width: 950px; background-color: #f7f7f7; border: 1px solid #eaeaea; margin: 0 auto; margin-top: 17px;">
                <%--<div style="height: 33px; float: left; line-height: 33px; margin-top: 20px; padding-left: 27px;">当前状态:</div>--%>

                <%--<div id="tt" class="easyui-tabs" style="width: 800px; height: 300px; float: left; margin-top: 20px">
                    <%=GetContent() %>
                </div>--%>
                <div style="float: left; height: 33px; line-height: 33px; width: 800px; margin-top: 15px; padding-left: 27px">
                    申请编号：
        <asp:TextBox runat="server" ID="txtIID"></asp:TextBox><asp:Button runat="server" Text="查询" ID="btnQuery" OnClick="btnQuery_Click" />
                </div>

                <div style="width: 950px; margin: 0 auto; margin-top: 20px;">
                    <!--  信息查看  -->
                    <div id="dlgConfig" class="easyui-window" title="信息查看" closed="true" modal="false"
                        minimizable="false" style="width: 950px; height:auto; background: #fafafa;">
                        <iframe id="iframeConfig" scrolling="no" frameborder="0" src="" style="width:950px; height: 100%;"></iframe>
                    </div>
                   
                    <defineControls:CustomGridView ID="CustomGridView1" runat="server" AllowPaging="True"
                        AutoGenerateColumns="false" ShowItemNumber="true" SkinID="List" CheckboxAutoPostBack="False"
                        DeleteToolTipOfCol="-1" HideTextLength="20" ShowHideColModel="None" SelectOrDelete="True"
                        Width="100%" AllowOnMouseOverEvent="true" OnOnLoadData="CustomGridView1_OnLoadData"
                        OnRowCreated="CustomGridView1_RowCreated" EmptyDataText=".">
                        <Columns>
                            <asp:BoundField DataField="flowtype" HeaderText="事项名称" />
                            <asp:TemplateField HeaderText="申请编号">
                                <ItemTemplate>
                                    <%# GetUrl(Container)%>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="tm" HeaderText="名称" Visible="false" />
                            <asp:BoundField DataField="slh" HeaderText="受理号" Visible="false" />
                            <asp:BoundField DataField="inputdate" HeaderText="提交时间" />
                            <asp:BoundField DataField="edittime" HeaderText="接收时间" />
                            <asp:BoundField DataField="FINISH_TIME" HeaderText="完成时间" />
                            <asp:TemplateField HeaderText="审批状态" Visible="false">
                                <ItemTemplate>
                                    <%# GetQuery(Container)%>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="补正原由" Visible="false">
                                <ItemTemplate>
                                    <a href="#" onclick='OpenReasonDiag(<%# Eval("iid")%>)'>
                                        <%# GetRemark(Container)%></a>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="操作" Visible="false">
                                <ItemTemplate>
                                    <asp:HyperLink ID="hlDelete" runat="server">删除</asp:HyperLink>
                                </ItemTemplate>
                            </asp:TemplateField>

                            <asp:TemplateField HeaderText="满意度" Visible="false">
                                <ItemTemplate>
                                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%#"WebFormPub.aspx?iid="+Eval("iid")+"&type=0&sj="+Eval("flowtype") %>' Target="_blank">评价</asp:HyperLink>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="投诉" Visible="false">
                                <ItemTemplate>
                                    <asp:HyperLink ID="hlTouSu" runat="server" NavigateUrl='<%#"WebFormPub.aspx?iid="+Eval("iid")+"&type=1"%>' Target="_blank">投诉</asp:HyperLink>

                                </ItemTemplate>
                            </asp:TemplateField>

                            <asp:TemplateField HeaderText="申请" Visible="false">
                                <ItemTemplate>
                                    <asp:HyperLink ID="hlBgsq" runat="server">变更申请</asp:HyperLink>
                                    <asp:HyperLink ID="hlYqsq" runat="server">延期申请</asp:HyperLink>
                                    <asp:HyperLink ID="hlCxsq" runat="server">撤销申请</asp:HyperLink>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </defineControls:CustomGridView>
                </div>
            </div>



        </div>







        <%--<div style="text-align: center">
            申请编号：
       
        <asp:TextBox runat="server" ID="txtIID"></asp:TextBox>
            <asp:Button runat="server" Text="查询" ID="btnQuery" OnClick="btnQuery_Click" />
            <br />--%>
    </form>
</body>
</html>
